package com.cj.life.ex;


import com.cj.life.service.web.ServiceCode;

/**
 * 业务处理异常
 */
public class ServiceException extends RuntimeException{

    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceCode getServiceCode(){
        return serviceCode;
    }
}
